<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>数学运算</title>
  </head>

  <!-- 
加减乘除模括
 -->
  <body>
    <script>
      var a = 2;
      var b = 3;

      console.log(a + b); //5
      console.log(a - b); //-1
      console.log(a * b); //6
      console.log(a / b); //0.666666667
      console.log(a % b); //2 分析：2除以3 商0余【2】

      // 括号内的东西优先运算
      console.log(1 + 2 * 3/ 4% 5 );
      console.log((1 + 2) * 3/ 4% 5 );//
    </script>
  </body>
</html>
